package map;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;

public class HashMap2 {
	public static void main(String[] args) {
		Map<String,Person> map =new HashMap<String,Person>();
		map.put("VVIP", new Person("Tom",15));
		map.put("VIP1", new Person("Tom",15));
		map.put("VIP2", new Person("Tom",15));
		map.put("VIP3", new Person("Tom",15));
		map.put("VIP4", new Person("Tom",15));
		p(map);
	}
	static void p(Object o){
		System.out.println(o);
	}
}
class Person{
	String name;
	int    age;
	public Person(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return this.name+"\t"+this.age;
	}
}